package com.navinfo.platform.dataanalysis;

import com.navinfo.platform.common.dto.BaseApplication;
import com.navinfo.platform.common.service.IDataHandleService;
import com.navinfo.platform.common.service.ILoadDataService;
import com.navinfo.platform.dataanalysis.service.impl.AnalysisLoadDataService;
import com.navinfo.platform.dataanalysis.service.impl.DataAnalysisHandleService;
import com.navinfo.platform.dataanalysis.service.impl.GasDataHandleService;
import com.navinfo.platform.dataanalysis.service.impl.GasDataLoadService;

/***
 * @author web
 */
public class GasApplication extends BaseApplication {

    /***
     * 指定配置文件的地址
     * @return
     */
    @Override
    public String getFileName() {
        return "config/dataanalysis/dataanalysis.properties";
    }

    /***
     * 实现一个处理业务逻辑的类
     * @return
     */
    @Override
    public IDataHandleService getDataHandleService() {
        return GasDataHandleService.INSTANCE;
    }

    /***
     * 实现一个加载数据的类
     * @return
     */
    @Override
    public ILoadDataService getLoadDataService() {
        return GasDataLoadService.INSTANCE;
    }

    public static void main(String[] args) {
        new GasApplication().start(args);
    }
}
